// index.js  
import { createStore } from 'vuex';  
  
const store = createStore({  
  state: {  
    isLoggedIn: false,  
  },  
  mutations: {  
    loginSuccess(state) {  
        
      state.isLoggedIn = true;  
    },  
    logout(state) {  
      state.isLoggedIn = false;  
    },  
  },  
});  
  
export default store;